﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AudioCore.Entity;

namespace AudioBook.AudioManagement.UC
{
    public partial class MenuUC : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                AccountEntity enAccount = (AccountEntity)Session[GUIConstants.Common.LOGIN_SESSION];
                if (enAccount != null)
                {
                    hplUserName.Text = enAccount.AccountName;
                }
            }
        }

        protected void btnLogout_Click(object sender, EventArgs e)
        {
            Session.Abandon();
            Response.Redirect(GUIConstants.WebPage.CommonPage.LoginPage);
        }
    }
}